package Javaa.Base.Thread;

import java.util.function.BinaryOperator;

public class LambdaExample {
    public static void main(String[] args) {
        BinaryOperator<Integer> add = (x, y) -> {
            int sum = x + y;
            return sum;
        };
        int result = add.apply(3, 5);
        System.out.println(result); // 输出 8
    }
}